package com.copa.utils;

/**
 * @author copa
 * @createDate 2021-01-14 13:39
 * @function
 */
public class WechatUtils {

    /**
     * 获取openId
     * @param userInfo
     * @return
     */
    public static String getOpenId(String userInfo) {
        userInfo = userInfo.substring(userInfo.indexOf("openId=") + 7,userInfo.indexOf(", avatarUrl="));
        return userInfo;
    }
}
